package com.itheima.service;

import com.itheima.pojo.OrderSetting;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.text.ParseException;
import java.util.List;

public interface OrderSettingService {
    /**
     * 下载预约设置模板
     */
    void downloadModel(HttpServletResponse response) throws IOException;

    /**
     * 根据日期修改可预约人数
     * @param orderSetting
     */
    void editNumberByOrderDate(OrderSetting orderSetting);

    /**
     * 根据日期获取预约设置数据
     * @param month
     * @return
     */
    List<OrderSetting> getOrderSettingByMonth(String month);

    /**
     * 批量导入预约设置数据
     * @param excelFile
     */
    void upload(MultipartFile excelFile) throws IOException, ParseException;
}
